 

function documentInsideCtrl($scope, $http) {
  'ngInject';
  // 档案盒数据
  this.taskId = $state.params.taskId;
  this.innerItemId = $state.params.innerItemId;
  this.imgUrl = $state.params.imgUrl;

  this.getImgUrl = () => {
    let imgUrl = this.imgUrl;
    return require(`../../../assets/images/${imgUrl}`);
  };

  // 获取专项检查信息
  this.specialInspection = () => {
    $http.get(`${SERVER_CONTEXT}/api/securityActivities/specialCheck/querySpecialCheckById/${this.taskId}`)
      .then((resp) =>{
        let innerList = resp.data.securityCheckClassifyMap.inner;
        console.log(innerList);
        let targetItem = {};
        innerList.forEach((item) => {
          if (item.checkClassifyId == this.innerItemId) {
            targetItem = item;
          }
        });
        this.gradedDetailList = targetItem.securityCheckItemScoreBeanList;
    });
  };
  this.specialInspection();

}

export default documentInsideCtrl;